<?= $this->element('back') ?>

<?= $this->Form->create('Slideshow', array(
    'url'     => '/admin_slideshow/save',
    'enctype' => 'multipart/form-data'
)) ?>

    <?= $this->Form->hidden('id', array('value' => @$data['Slideshow']['id'])) ?>
    
    <p><?= $this->Form->label('title', 'Naslov:') ?>
    <?= $this->MyForm->text('title', array('value' => @$data['Slideshow']['title']))?>
    <?= $this->MyForm->error('title') ?></p>
    
    <p><?= $this->Form->label('image_file', 'Slika:') ?>
    <?= $this->Form->file('image_file')?><br>
    <?= $this->Html->image('slideshow/'.@$data['Slideshow']['image'].'?w=300&h=300') ?></p>
    
    <p><?= $this->Form->textarea('blurb', array(
        'value' => @$data['Slideshow']['blurb'],
        'class' => 'ckedit'
    ))?></p>
    
    <?= $this->Form->submit('Sačuvaj') ?>

<?= $this->Form->end() ?>